
  <section class="contact" id="contact">
    <div class="container topCon">

   <?php if ( isset(qvaCore::$qvaOptions['contact']['title']) || isset(qvaCore::$qvaOptions['contact']['short_description']) || isset(qvaCore::$qvaOptions['contact']['description']) ) : 

          if (  !empty(qvaCore::$qvaOptions['contact']['title']) || !empty(qvaCore::$qvaOptions['contact']['short_description']) || !empty(qvaCore::$qvaOptions['contact']['description']) ) :
    ?>

      <div class="heading"> 
       <?php  isset(qvaCore::$qvaOptions['contact']['title']) && !empty(qvaCore::$qvaOptions['contact']['title']) ?    printf(__(stripslashes('<h2>%s</h2>'), QVA_LANG), qvaCore::$qvaOptions['contact']['title'])  : ""; ?>
        <?php  isset(qvaCore::$qvaOptions['contact']['short_description']) && !empty(qvaCore::$qvaOptions['contact']['short_description']) ?  printf(__(stripslashes('<h3>%s</h3>'), QVA_LANG), qvaCore::$qvaOptions['contact']['short_description'])  : ""; ?>
        <?php  isset(qvaCore::$qvaOptions['contact']['description']) && !empty(qvaCore::$qvaOptions['contact']['description']) ?   printf(__(stripslashes('<p>%s</p>'), QVA_LANG), qvaCore::$qvaOptions['contact']['description'])  : ""; ?>
      </div>
    </div>
    <!--google map start-->
    <?php 
    endif;endif;
      if ( isset(qvaCore::$qvaOptions['contact']['googlemap'])  ) : 
        if (!empty(qvaCore::$qvaOptions['contact']['googlemap'])) :
          if ( isset( qvaCore::$qvaOptions['contact']['googlemap']['longitude'] ) && isset(qvaCore::$qvaOptions['contact']['googlemap']['latitude']) ) :
            if ( !empty( qvaCore::$qvaOptions['contact']['googlemap']['longitude'] ) && !empty(qvaCore::$qvaOptions['contact']['googlemap']['latitude'])  ) :

    ?>
    <div id="qva-googlemap" class="row mapArea" data-longitude="<?php echo isset(qvaCore::$qvaOptions['contact']['googlemap']['longitude']) ? ltrim(qvaCore::$qvaOptions['contact']['googlemap']['longitude']) : '';  ?>" data-latitude="<?php echo isset(qvaCore::$qvaOptions['contact']['googlemap']['latitude']) ? ltrim(qvaCore::$qvaOptions['contact']['googlemap']['latitude']) : '';  ?>" data-image="<?php  echo isset(qvaCore::$qvaOptions['contact']['googlemap']['marker_image']) ? ltrim(qvaCore::$qvaOptions['contact']['googlemap']['marker_image']) : '';  ?> " data-title="<?php  echo isset(qvaCore::$qvaOptions['contact']['googlemap']['marker_title']) ? stripslashes(qvaCore::$qvaOptions['contact']['googlemap']['marker_title']) : '';  ?>">
    </div>

    <?php endif; endif;endif;endif; ?>
    <!--google map end--> 
  </section>


  <?php if ( isset(qvaCore::$qvaOptions['contact']['section3']['contactform7_shortcode']) && !empty(qvaCore::$qvaOptions['contact']['section3']['contactform7_shortcode']) ) : ?>
  <section class="contactDetails">
    <div class="container"> 
      <!--contact form start-->
      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 conForm">
       <?php  isset(qvaCore::$qvaOptions['contact']['ctf7_title']) && !empty(qvaCore::$qvaOptions['contact']['ctf7_title']) ?  printf(__(stripslashes('<h3>%s</h3>'), QVA_LANG),qvaCore::$qvaOptions['contact']['ctf7_title'] )  : ""; ?>
        <div id="message"></div>
        <?php //echo do_shortcode(stripslashes(qvaCore::$qvaOptions['contact']['section3']['contactform7_shortcode']))
            $qva_contactFormId = qvaCore::$qvaOptions['contact']['section3']['contactform7_shortcode'];
            $qva_contactFormTitle = get_the_title($qva_contactFormId); 
            echo do_shortcode(sprintf( '[contact-form-7 id="%1$d" title="%2$s"]', $qva_contactFormId, $qva_contactFormTitle ));
        ?>
      </div>
      <!--contact form end--> 
    </div>
  </section>
  <?php endif; ?>
  

  <?php if ( isset(qvaCore::$qvaOptions['contact']['contact_info']) && !empty(qvaCore::$qvaOptions['contact']['contact_info']) ) : 
      $qva_contactDetailId = qvaCore::$qvaOptions['contact']['contact_info'];
      $qva_aContactDetail = get_post_meta($qva_contactDetailId, 'qva_contact_details', true);

  ?>
  <div class="contactInfo">
    <div class="container">
      <?php  if ( isset($qva_aContactDetail['contact_details']['info']) && !empty($qva_aContactDetail['contact_details']['info']) ) : ?>  
      <div class="row">
        <?php foreach ($qva_aContactDetail['contact_details']['info'] as $k => $info) : ?>
        <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3 cinfoBox"> <span class="infoIcon"><i class="<?php echo isset($qva_aContactDetail['contact_details']['icon'][$k]) ? $qva_aContactDetail['contact_details']['icon'][$k] : "";  ?>"></i></span>
          <?php  isset($info) && !empty($info) ?   printf(__(stripslashes('<p>%s</p>'), QVA_LANG), $info) : "";  ?>
        </div>
      <?php endforeach;?>
      </div>
    <?php endif; ?>
    </div>
  </div>
  <?php endif;?>

